//YWROBOT
//www.YwRobot.net
int sensorPin = 1;    // select the input pin for the potentiometer
int ledPin = 13;      // select the pin for the LED
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup()
{
    pinMode(ledPin, OUTPUT);   // declare the ledPin as an OUTPUT:
}

void loop()
{
    sensorValue = analogRead(sensorPin);// read the value from the sensor:
    if(sensorValue < 700)
    {
        digitalWrite(ledPin, HIGH);   
    }
    else digitalWrite(ledPin, LOW);
}
